﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Intrinsics.X86;

namespace Coldairarrow.Entity.Interface
{
    /// <summary>
    /// 亚马逊多渠道订单物流信息
    /// </summary>
    /// 

    public class OrderLogDTO
    {
        public string code { get; set; }
        public string message { get; set; }
        public string request_id { get; set; }
        public string response_time { get; set; }
        public int total { get; set; }
        public List<OrderLog> data { get; set; }

    }

    public class OrderLog
    {
        public string RowId { get; set; }
        public string ID { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
        /// <summary>
        /// 店铺id
        /// </summary>
        public string sid { get; set; }


        /// <summary>
        /// 店铺名称
        /// </summary>
        public string store_name { get; set; }

        /// <summary>
        /// 亚马逊订单号	
        /// </summary>
        public string amazon_order_id { get; set; }
        /// <summary>
        /// 卖家订单号
        /// </summary>
        public string seller_fulfillment_order_id { get; set; }
        /// <summary>
        /// 装箱单备注	
        /// </summary>
        public string displayable_order_comment { get; set; }
        /// <summary>
        /// 订单状态	
        /// </summary>
        public string order_status { get; set; }

        /// <summary>
        /// 销售渠道	
        /// </summary>
        public string sales_channel { get; set; }
        /// <summary>
        /// 提交时间
        /// </summary>
        public string purchase_date_local { get; set; }

        /// <summary>
        /// 发货时间（站点时间）
        /// </summary>
        public string ship_date { get; set; }

        /// <summary>
        /// 发货时间（utc时间）
        /// </summary>
        public string ship_date_utc { get; set; }

        /// <summary>
        /// 配送服务	
        /// </summary>
        public string speed_category { get; set; }

        /// <summary>
        /// 商品信息	
        /// </summary>
        public List<shipment_info> shipment_info { get; set; }

    }


    public class shipment_info
    {
        public string RowId { get; set; }
        public string ID { get; set; }

        /// <summary>
        /// 亚马逊订单号	
        /// </summary>
        public string amazon_order_id { get; set; }
        /// <summary>
        /// 卖家订单号
        /// </summary>
        public string seller_fulfillment_order_id { get; set; }

        /// <summary>
        /// 货件编号	
        /// </summary>
        public string amazon_shipment_id { get; set; }
        /// <summary>
        /// ship状态	
        /// </summary>
        public string fulfillment_shipment_status { get; set; }
        /// <summary>
        /// 预计到货时间【站点时间】	
        /// </summary>
        public string estimated_arrival_datetime { get; set; }
        /// <summary>
        /// 包裹信息	
        /// </summary>
        public List<packages> packages { get; set; }

        /// <summary>
        /// 包裹编号	
        /// </summary>
        public string package_number { get; set; }
        /// <summary>
        /// 承运人code	
        /// </summary>
        public string carrier_code { get; set; }
        /// <summary>
        /// 追踪号	
        /// </summary>
        public string tracking_number { get; set; }
        /// <summary>
        /// 包裹运输状态	
        /// </summary>
        public string current_status { get; set; }
        /// <summary>
        /// 发货日期【UTC时间】	
        /// </summary>
        public string ship_date { get; set; }


        /*包裹物料信息 */
        /// <summary>
        /// 标题
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public string quantity { get; set; }
        /// <summary>
        /// msku
        /// </summary>
        public string msku { get; set; }
        /// <summary>
        /// 店铺id	
        /// </summary>
        public string sid { get; set; }

        /// <summary>
        /// 拷贝该对象
        /// </summary>
        /// <returns></returns>
        public shipment_info Clone()
        {
            return (shipment_info)this.MemberwiseClone();
        }

    }

    public class packages
    {
        /// <summary>
        /// 包裹编号	
        /// </summary>
        public string package_number { get; set; }
        /// <summary>
        /// 承运人code	
        /// </summary>
        public string carrier_code { get; set; }
        /// <summary>
        /// 追踪号	
        /// </summary>
        public string tracking_number { get; set; }
        /// <summary>
        /// 包裹运输状态	
        /// </summary>
        public string current_status { get; set; }
        /// <summary>
        /// 预计到货时间【站点时间】	
        /// </summary>
        public string estimated_arrival_datetime { get; set; }
        /// <summary>
        /// 发货日期【UTC时间】	
        /// </summary>
        public string ship_date { get; set; }
        /// <summary>
        /// 货件编号	
        /// </summary>
        public string shipped_quantity { get; set; }

        /// <summary>
        /// 包裹信息	
        /// </summary>
        public List<shipItems> shipItems { get; set; }

        /// <summary>
        /// 跟踪事件	
        /// </summary>
        public List<tracking_events> tracking_events { get; set; }


    }


    public class shipItems
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public string quantity { get; set; }
        /// <summary>
        /// msku
        /// </summary>
        public string msku { get; set; }
        /// <summary>
        /// 包裹编号	
        /// </summary>
        public string package_number { get; set; }
        /// <summary>
        /// 店铺id	
        /// </summary>
        public string sid { get; set; }

    }

    public class tracking_events
    {
        /// <summary>
        /// 时间地址	
        /// </summary>
        public eventAddress eventAddress { get; set; }
        /// <summary>
        /// 时间编码	
        /// </summary>
        public string eventCode { get; set; }
        /// <summary>
        /// 事件	
        /// </summary>
        public string event_ { get; set; }

        /// <summary>
        /// 事件描述	
        /// </summary>
        public string eventDescription { get; set; }
        /// <summary>
        /// 事件日期
        /// </summary>
        public string eventDate { get; set; }

    }


    public class eventAddress
    {
        /// <summary>
        /// 国家
        /// </summary>
        public string country { get; set; }
        /// <summary>
        /// 城市
        /// </summary>
        public string city { get; set; }
        /// <summary>
        /// 地区
        /// </summary>
        public string state { get; set; }

    }
}
